<template>
  <div class="selectHeader">
    <div class="select-wrapper">
      <div class="selectBox">
        <div class="selectTitle">
          <i class="iconfont icon-sousuo" />按条件查询
        </div>
        <el-form
          ref="form"
          :model="form"
          label-width="150px"
          label-position="left"
        >
          <el-form-item label="村庄名：">
            <el-input v-model="form.village"></el-input>
          </el-form-item>
          <el-form-item label="编制单位名称:">
            <el-input v-model="form.unitName"></el-input>
          </el-form-item>
          <div v-if="filterShow">
            <el-form-item label="编制单位资质:">
              <el-radio-group v-model="form.zizhi" size="small">
                <el-radio label="1" border>甲级</el-radio>
                <el-radio label="2" border>乙级</el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="所属市:">
              <el-radio-group v-model="form.cityv" size="small">
                <el-radio
                  v-for="(item, index) in citylist"
                  :key="index"
                  :label="item.label"
                ></el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="阶段进度:">
              <el-radio-group v-model="form.JDJD" size="small">
                <el-radio label="1" border>组织准备</el-radio>
                <el-radio label="2" border>技术准备</el-radio>
                <el-radio label="3" border>驻村调查</el-radio>
                <el-radio label="4" border>规划编制</el-radio>
                <el-radio label="5" border>成果报批</el-radio>
                <el-radio label="6" border>成果公告备案</el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="领取情况:">
              <el-radio-group v-model="form.LQQK" size="small">
                <el-radio label="1" border>待授权</el-radio>
                <el-radio label="2" border>已通过</el-radio>
                <el-radio label="3" border>已拒绝</el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="完成时限范围:" style="width: 50%">
              <el-col :span="11">
                <el-date-picker
                  type="date"
                  placeholder="起始日期"
                  v-model="form.date1"
                  style="width: 80%"
                ></el-date-picker>
              </el-col>
              <el-col class="line" :span="2">-</el-col>
              <el-col :span="11">
                <el-date-picker
                  placeholder="终止日期"
                  v-model="form.date2"
                  style="width: 80%"
                ></el-date-picker>
              </el-col>
            </el-form-item>
          </div>
        </el-form>
        <div class="icondiv">
          <span v-show="filterShow" @click="filterShow = false">
            收起
            <i class="el-icon-arrow-up"></i>
          </span>
          <span v-show="!filterShow" @click="filterShow = true">
            更多
            <i class="el-icon-arrow-down"></i>
          </span>
        </div>
      </div>

      <div class="searchBox">
        <div class="daoButton">
          <img src="@/assets/daochu.png" alt="" />
          <span>全部导出</span>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import {
  mapGetters
} from 'vuex'
export default {
  
  data() {
    return {
      citySelected: "",
      form: {},
      filterShow: false,
    };
  },
    computed: {
    ...mapGetters([
      'citylist',
    ])
  },
  props: {},
  methods: {},
};
</script>
<style lang="scss" scoped>
::v-deep .el-input {
  width: 30%;
}
.selectHeader {
  position: relative;
  height: 100%;
  display: flex;
  background-color: #fff;
  flex-direction: column;
  .select-wrapper {
    .selectBox {
      .selectTitle {
        font-size: 16px;
        font-weight: 500;
        color: #4778c7;
        padding-bottom: 10px;
        margin-bottom: 10px;
        border-bottom: 1px dashed #ccc;
        display: flex;
        align-items: center;
        i {
          font-size: 20px;
          margin-right: 5px;
        }
      }
      .icondiv {
        text-align: center;
        font-size: 18px;
        color: #4778c7;
      }
      padding: 10px 10px;

      span {
        font-size: 14px;
        width: 130px;
      }
    }

    .searchBox {
      padding: 10px;
      background-color: #f2f2f2;
      height: 52px;
      position: relative;
      .daoButton {
        width: 120px;
        min-width: 120px;
        position: absolute;
        right: 10px;
        display: flex;
        align-items: center;
        background-color: #4778c7;
        border-radius: 4px;
        padding: 10px;
        height: 32px;
        color: #fff;
        img {
          margin-right: 5px;
          width: 25px;
          height: 25px;
        }
      }
    }
  }
}
::v-deep .el-select .el-input {
  width: 130px;
}
::v-deep .input-with-select .el-input-group__prepend {
  background-color: #fff;
}
</style>